/* author: Mariana Horita
   mariana.horita@gmail.com
   file: A5E3-p2.aspx.cs*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Exercicios
{
    public partial class A5E3_p2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblNome.Text = Request.QueryString["nome"];
            lblTelefone.Text = Request.QueryString["telefone"];
            lblEndereco.Text = Request.QueryString["endereco"];
        }

        protected void btConfirmar_Click(object sender, EventArgs e)
        {
            if (ckbEndereco.Checked && ckbNome.Checked && ckbTelefone.Checked)
            {
                Response.Redirect("A5E3-p3.aspx");
            }
            else
            {
                Response.Redirect("A5E3-p1.aspx?nome=" + Request.QueryString["nome"] + "&telefone=" + Request.QueryString["telefone"] + "&endereco=" + Request.QueryString["endereco"]);
            }
        }
    }
}